package com.wlyuan.open.scanner.domain.order;

import com.wlyuan.open.scanner.utils.enums.order.MultiTransportTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author lijing
 * @description
 */
@Data
public class OrderTransport implements Serializable {

    private static final long serialVersionUID = -5204859110937299882L;
    @ApiModelProperty("订单ID")
    private Long orderId;
    @ApiModelProperty("交通方式，1飞机，2火车，3轮渡，4电子回单")
    private MultiTransportTypeEnum type;
    @ApiModelProperty("交通车次（航班号，火车车次，轮渡船名）/电子回单编码")
    private String no;
    @ApiModelProperty("开始时间")
    private LocalDateTime startTime;
    @ApiModelProperty("结束时间")
    private LocalDateTime endTime;
    @ApiModelProperty("出发地")
    private String startPlace;
    @ApiModelProperty("到达地")
    private String endPlace;
    @ApiModelProperty("备注")
    private String remark;
    @ApiModelProperty("0 未到达终点站，1 已到达终点站，火车默认已经到达终点站")
    private Integer arrive;
    @ApiModelProperty("火车/飞机始发站到终点站的平均速度 单位  千米/小时")
    private BigDecimal speed;
    @ApiModelProperty("电子回单/途经省编码")
    private Long wayProvinceCode;
    @ApiModelProperty("电子回单/途经省")
    private String wayProvince;
    @ApiModelProperty("电子回单/途经市编码")
    private Long wayCityCode;
    @ApiModelProperty("电子回单/途经市")
    private String wayCity;
    @ApiModelProperty("电子回单/途经区编码")
    private Long wayDistrictCode;
    @ApiModelProperty("电子回单/途经区")
    private String wayDistrict;
    @ApiModelProperty("电子回单/途径详细地址")
    private String wayTo;
    @ApiModelProperty("电子回单序号")
    private Long sequence;
    @ApiModelProperty("0有效 1无效")
    private Integer invalid;

    private Long id;

    @ApiModelProperty("操作人")
    private Long operator;
    @ApiModelProperty("操作时间")
    private LocalDateTime operatorTime;
}
